<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 递归实现深拷贝
        function deep(obj){
            let arr={};
           for (const key in obj){ 
            if(obj[key]instanceof Object){
                arr[key] = deep(obj[key]);
            }else {
                arr[key] = obj[key];
            }
           }
           return arr;
        }
    </script>

</body>

</html>